<!-- templates/archive.html -->
{{define "archive"}}
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>archive {{.name}} - {{.extend.profile.name}}</title>
		<meta name="description" content="" />
		<link rel="alternate" href="{{.path}}" hreflang="en" />
		<link rel="canonical" href="{{.path}}" />
		<link rel="stylesheet" href="/assets/css/output.css" />
	</head>

	<body>
		<!-- header -->
		{{template "header" .}}

		<!-- main -->
		<main class="bgf7 yp20">
			<div class="container mx1080 x-center x-column">
				{{ range .message}}
				<div class="container x92 xp4 ym10 yp20 bgf fs14 br4 lh2 x-column">
					<h2>
						<a href="/post/{{toLower .Name}}/"> {{.Meta.title}} </a>
					</h2>

					<p class="container x-between">
						<span>
							<a href="/category/{{toLower .Meta.category}}/"> {{.Meta.category}} </a>
						</span>
						<span> {{.Meta.date}}</span>
					</p>
					<p class="cl6">{{.Meta.description}}</p>
					<p>
						<span>
							{{range .Meta.tag}}
							<a href="/tag/{{toLower .}}">{{.}} </a>
							{{end}}
						</span>
					</p>
				</div>
				{{end}}
			</div>
		</main>

		<!-- footer -->
		{{template "footer" .}}
	</body>
</html>
{{end}}
